package com.itheima.bean;

import org.springframework.stereotype.Component;

/**
 * ClassName: Cat
 * Description:
 * Date: 2023/03/22 PM 7:13:30
 * <p>
 * project: springboot
 * package: com.itheima.bean
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Component("tom")
public class Cat {

    public Cat() {
    }

    int age;

    public Cat(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "age=" + age +
                '}';
    }
}
